package com.ruoyi.deeplearn.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据集类型对象 deep_dataset_type
 * 
 * @author 任伟伟
 * @date 2022-12-10
 */
public class DeepDatasetType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类型ID */
    private Long typeId;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String name;

    /** 类型值 */
    @Excel(name = "类型值")
    private String code;
//    {type:1,name:'分类'},
//    {type:2,name:'检测'},//边界框
//    {type:3,name:'分割'},
//    {type:4,name:'识别'},
//    {type:5,name:'点标注'},
//    {type:6,name:'线标注'},
//    {type:7,name:'像素标注'},
    private Integer type;//1:分类  2：检测  3：分割  4：识别  5:点标注  6:线标注  7:像素标注
    private Integer data;//数据类型： 1：文本  2：照片  3：视频

    public static final int type_classification = 1;
    public static final int type_detection = 2;
    public static final int type_partition = 3;
    public static final int type_recognition = 4;
    public static final int type_point_dimension = 5;
    public static final int type_line_dimension = 6;
    public static final int type_pixel_dimension = 7;
    //检测 识别 的区别 https://aistudio.baidu.com/aistudio/projectdetail/4835835


    public static final int data_txt = 1;
    public static final int data_image = 2;
    public static final int data_video = 3;



    /** 状态：（0正常 1停用） */
    @Excel(name = "状态：", readConverterExp = "0=正常,1=停用")
    private Integer status;


    public Integer getData() {
        return data;
    }

    public void setData(Integer data) {
        this.data = data;
    }

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("typeId", getTypeId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("name", getName())
            .append("code", getCode())
            .append("status", getStatus())
            .toString();
    }
}
